.container {
    display: flex;
    padding: 25px;
    padding-left: 0;
}
.main {
    flex: 1;
    margin-top: 20px;
    overflow: auto;
}
.final-button {
    border: 0px;
    border-radius: 8px;
    padding: 10px 20px;
    margin: 0 20px;
    cursor: pointer;
    font-size: 17px;
    background-color: #21A053;
    color: white;
}
.final-button:hover {
    background-color: #178641;
}
/*----------------------------------------------------------------------------------侧边导航栏部分*/
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    background-color: #21A053;
    width: 190px;
    height: 100vh;
    padding: 20px;
    z-index: 1000;
}
.sidebar h2 {
    font-size: 22px;
    margin-bottom: 30px;
    color: #dddddd;
    margin-left: 10px;
}
.sidebar ul li {
    margin-bottom: 20px;
}
.sidebar ul li a {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #F5D95B;
    padding: 10px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    font-size: 18px;
}
.sidebar ul li a:hover {
    background-color: #178641;
    color: #dddddd;
}


/*--------------------------------------------------------------------------------首页的显示信息*/
.admin-alert {
    margin-top: 80px;
    color: black;
    font-weight: normal;
}
.admin-alert p {
    margin-bottom: 10px;
}


/*----------------------------------------------------------------------------------商品类别管理界面*/
/*------------添加商品类别表单设置*/
.category-add {
    margin-bottom: 25px;
    display: flex;
}
.category-add button,
.user-list button[onclick="location.href='/admin/user_add.jsp'"]{
    border: 0px;
    border-radius: 8px;
    padding: 10px 20px;
    margin: 0 20px;
    cursor: pointer;
    font-size: 17px;
    background-color: #21A053;
    color: white;
}
.category-add button:hover {
    background-color: #178641;
}
.category-add input {
    flex: 1;
    padding: 10px;
    margin-right: 15px;
    border-radius: 9px;
}

/*整体表格设置*/
table {
    border-collapse: collapse;
    width: 100%;
    background-color: #fff;
}
/*每一个小格子设置*/
th,td {
    padding: 14px 12px;
    text-align: center;
    border-bottom: 1px solid #eee;
    white-space: nowrap;
}
th {
    background-color: #f3f6fa;
}

/*按键设置*/
.table-actions button {
    border: 0px;
    border-radius: 4px;
    padding: 10px 12px;
    margin: 0 12px;
    cursor: pointer;
    font-size: 16px;
    white-space: nowrap;
}
.table-actions .edit-btn {
    background-color: #ffb900;
    color: white;
}
.table-actions .edit-btn:hover {
    background-color: #eaa500;
}
.table-actions .delete-btn {
    background-color: #ff5757;
    color: white;
}
.table-actions .delete-btn:hover {
    background-color: #e04444;
}

/*------------修改商品类别设置*/
.category-edit h2,
.user-add h2 {
    margin-bottom: 40px;
}
.category-edit-form label:nth-of-type(1),
.category-edit-form label:nth-of-type(2) {
    margin-right: 20px;
    margin-bottom: 25px;
}
/*输入框设置*/
#category-name {
    width: 600px;
    padding: 15px;
    border-radius: 8px;
}
#is_use-yes {
    margin-right: 20px;
}
.category-edit-form button {
    margin-top: 30px;
    margin-left: 0;
    width: 170px;
}


/*------------------------------------------------------------用户管理界面*/
.user-list {
    padding: 15px;
}
.user-list button[onclick="location.href='/admin/user_add.jsp'"] {
    position: fixed;
    top: 20px;
    left: 250px;
}

/*-------------------------------------------------------------添加用户界面*/
.user-add-form-group {
    margin-bottom: 20px;
}

/*所有标签设置*/
.user-add-form-group label {
    margin-right: 40px;
    font-weight: normal;
    font-size: 16px;
    color: black;
}
/*所有输入框设置*/
.user-add-form-group input[type="text"],
.user-add-form-group input[type="password"],
.user-add-form-group input[type="email"]{
    width: 500px;
    padding: 10px;
    border: 1px solid gainsboro;
    border-radius: 5px;
}
#nickname,#email {
    margin-left: 16px;
}
#password {
    margin-left: 16px;
}
/*头像部分*/
.avatar-preview {
    display: inline-block;
    width: 80px;
    height: 80px;
    overflow: hidden;
    vertical-align: middle;
}
#avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/*错误提示信息*/
.error {
    color: red;
    margin-bottom: 20px;
    font-size: 12px;
    margin-left: 100px;
}
.user-add-form button {
    margin-top: 20px;
    margin-left: 0;
}

/*---------------------------------------------------------------------------------------------商品管理*/
.goods-list-btn {
    display: flex;
    flex-direction: row;
    gap: 15px;
}
.goods-list button {
    border: 0px;
    border-radius: 8px;
    padding: 10px 20px;
    margin: 0 20px;
    cursor: pointer;
    font-size: 17px;
    background-color: #21A053;
    color: white;
}
.goods-list button a {
    width: 100%;
    height: 100%;
}
.goods-list button:hover {
    background-color: #178641;
}